<#include "../../layout/blank.ftl">
<#macro header>
<script type="text/javascript">
    $(function () {
        function view() {
            $("#bjForm").submit();
        }

        window.setInterval(view, 120000);
    })

</script>
</#macro>
<#macro body>
<form id="bjForm" method="post" action="${base}/sys/bjgl/bjDetail">
    <input type="hidden" id="gsId" name="gsId" value="${gsId}"/>
    <input type="hidden" id="count" name="count" value="${count}"/>

    <div align=center style='font-size:25px;color:red;background-color:transparent'>${gsmc}销售报价</div>
    <div align=center style='font-size:20px;color:red;background-color:transparent'>${currentDate?date}</div>
    <br>

    <div align=center style='font-size:15px;text-align:left;line-height:25px;color:red;background-color:transparent'>
        <div>
            <table style="width:100%;color:red;border-collapse:collapse;" cellspacing=0>
                <tr>
                    <td style="width:15%;border:solid red 1px;font-size:12px" height=28px align=center>品种</td>
                    <td style="width:15%;border:solid red 1px;font-size:12px" align=center>规格</td>
                    <td style="width:15%;border:solid red 1px;font-size:12px" align=center>产地</td>
                    <td style="width:15%;border:solid red 1px;font-size:12px" align=center>可开单数量</td>
                    <td style="width:20%;border:solid red 1px;font-size:12px" align=center>库存数量</td>
                    <td style="width:20%;border:solid red 1px;font-size:12px" align=center>价格（元）</td>
                </tr>
            </table>
        </div>
        <div id="scrollMsg" style="overflow:hidden;height:222px;font-size:10px">
            <MARQUEE scrollDelay=400 direction=up height=222px style="padding: 0px 0pt;width:100%">
                <table style="width:100%;color:red;border-collapse:collapse;" cellspacing=0>
                    <#if bjList??>
                        <#list bjList as bj>
                            <tr>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="gg.name">
                                        <td style="width:15%;border:solid red 1px;font-size:12px" height=25px
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="gg.ggxh">
                                        <td style="width:15%;border:solid red 1px;font-size:12px"
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="cd.z">
                                        <td style="width:15%;border:solid red 1px;font-size:12px"
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="kkdsl">
                                        <td style="width:15%;border:solid red 1px;font-size:12px"
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="kcsl">
                                        <td style="width:20%;border:solid red 1px;font-size:12px"
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                                <#list bj?keys as itemKey>
                                    <#if itemKey="hdbj">
                                        <td style="width:20%;border:solid red 1px;font-size:12px"
                                            align=center>${(bj[itemKey])!}</td>
                                    </#if>
                                </#list>
                            </tr>
                        </#list>
                    <#else>
                        <tr>
                            <td colspan="5" style="width:20%;border:solid red 1px;font-size:12px" height=25px
                                align=center>本公司未报价
                            </td>
                        </tr>
                    </#if>
                </table>
            </MARQUEE>
        </div>
    </div>
</form>
</#macro>